'''
Created on 2017-6-13

@author: panda
'''
import wx
import os


def google(event):
    os.system('start C:\\\"Program Files (x86)\"\\Google\\Chrome\\Application\\chrome.exe')
    
def kugou(event):
    os.system('start L:\\\"Program Files\"\\KuGou2012\\KuGou.exe')
    
def lol(event):
    os.system('start L:\\\TGPGame\\LOL\\lol')

def main():    
    list=["google","kugou","lol"]       
    app = wx.App()
    win = wx.Frame(None,title="Software management",size=(800,700))

    bkg = wx.Panel(win)

    googleBtn = wx.Button(bkg,label=list[0])
    googleBtn.Bind(wx.EVT_BUTTON, google)
    kugouBtn = wx.Button(bkg,label=list[1])
    kugouBtn.Bind(wx.EVT_BUTTON, kugou)
    lolBtn = wx.Button(bkg,label=list[2])
    lolBtn.Bind(wx.EVT_BUTTON, lol)

    hbox = wx.BoxSizer(wx.VERTICAL)

    hbox.Add(googleBtn,proportion=0,flag=wx.LEFT,border=10)
    hbox.Add(kugouBtn,proportion=0,flag=wx.LEFT,border=10)
    hbox.Add(lolBtn,proportion=0,flag=wx.LEFT,border=10)

    bkg.SetSizer(hbox)
    win.Show()
    app.MainLoop()
    
if __name__ == "__main__":
    main()